package com.example.administrator.seniorplayer.utilis;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/**
 * 作者："徐继丰" on 2015/10/15 0015 14:15
 * <p/>
 * 邮箱：1072666163@qq.com
 * <p/>
 * 用于播放视频的跳转类
 */
public class VideoIntent extends Intent {


    public VideoIntent() {
    }

    public VideoIntent(Context packageContext, Class<?> cls) {
        super(packageContext, cls);
    }

    public void uriStartVideo(String uri) {
        this.putExtra("PlayerSign", 2);
        Uri uri1 = Uri.parse(uri);
        VideoUri videoUri = new VideoUri(uri1);
        VideoViewPlayer.uri = videoUri;
    }

    public void pathStartVideo(String path) {
        this.putExtra("PlayerSign", 1);
        this.putExtra("path", path);
    }
}
